FROM coding-public-docker.pkg.coding.net/public/docker/openjdk:8

COPY ./starter/target/walkframework-sample.jar  /root/workspace/walkframework-sample.jar
COPY ./starter/target/classes/*.properties  /root/workspace/conf/
COPY ./starter/target/classes/*.xml  /root/workspace/conf/

CMD java -jar -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT+08 -server -Xms1g -Xmx1g -Xmn512m -XX:MetaspaceSize=128m -XX:+UseConcMarkSweepGC -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/logs/java_heapdump.hprof -XX:-UseLargePages -Xloggc:/opt/logs/ic_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M ./walkframework-sample.jar --spring.config.location=/root/workspace/conf/application.properties
